package Model;


import java.util.Date;

import controller.writer;

public aspect logging {
	pointcut gravarBD():
		call(boolean BD.*(*));
	
	pointcut criar():
		call(void controller.Controller.*(*));
		
	after(): gravarBD() {
		 writer.getWriter().println("Acesso ao BD " + thisJoinPointStaticPart.getSignature() + " " + new Date().toString());
		 }
	
	after() : criar() {
		 writer.getWriter().println("Instancia Criada " + thisJoinPointStaticPart.getSignature() +" "+ new Date().toString());
		 }
}
